import request from '_r/request'

const api_name = 'recoveryFile'

// 获取回收站文件列表
export function getRecoveryFile() {
	return request({
		url: `${api_name}/list`,
		method: 'get'
	})
}

// 回收站文件删除
export function deleteRecoveryFile(data) {
	return request({
		url: `${api_name}/deleteRecoveryFile`,
		method: 'delete',
		data: data
	})
}

// 回收站文件还原
export function restoreRecoveryFile(data) {
	return request({
		url: `${api_name}/restoreFile`,
		method: 'post',
		data: data
	})
}
